/********************************************************************************
* @file    I2C.h
* @author  
* @version 
* @date    
* @brief   This file contains all functions prototype and macros for the i2C peripheral.
******************************************************************************
* @attention
* <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
*******************************************************************************/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _H_DELAY_FILE_
#define _H_DELAY_FILE_

/* Includes ------------------------------------------------------------------*/
#include "stm8s.h"

/* Configurable parameters-------------------------------------------------------*/

//#define DEBUG_MODE
//#define USE_HADRDWARE_IIC
//#define USART_RECIEVE_CHECK_TIMEOUT
//#define IIC_HW_MULTI_SLAVE


/* Exported types ------------------------------------------------------------*/

/* Exported macro ------------------------------------------------------------*/

/** delay */
#define	theDELAY				TIM2
#define	theDELAY_SR1_UIF		TIM2_SR1_UIF


/* Exported variables --------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/
void InitDelay(void);
void _delay(u16);
void _delay_us(u16);
void _delay_ms(u16);

#endif /* DELAY */

/******************* (C) MITIANSHENYU *****END OF FILE****/

